package hu.blok1.veilingsite.shared;

import java.util.Date;

import com.google.gwt.user.client.rpc.IsSerializable;

public class Product implements IsSerializable {
	private int productID;
	private String name;
	private int minimumPrize;

	private Date startDate, endDate;
	private String startDateString, endDateString;

	private String status;
	private String description;
	private String image;
	private int userID;
	private String category;

	private String userName;
	
	private int highestBid;

	// Default constructor
	public Product() {

	}

	// Constructor met type String voor begin en eindtijd
	public Product(int _productID, String _name, int _minimumPrize,
			Date _startDate, Date _endDate, String _status,
			String _description, String _image, int _userID, String _category) {
		productID = _productID;
		name = _name;
		minimumPrize = _minimumPrize;
		startDate = _startDate;
		endDate = _endDate;
		status = _status;
		description = _description;
		image = _image;
		userID = _userID;
		category = _category;
	}

	// DE GETTERS

	public int getProductID() {
		return productID;
	}

	public String getName() {
		return name;
	}

	public int getMinimumPrize() {
		return minimumPrize;
	}

	public Date getStartDate() {
		return startDate;
	}

	public String getStartDateString() {
		return startDateString;
	}

	public Date getEndDate() {
		return endDate;
	}

	public String getEndDateString() {
		return endDateString;
	}

	public String getStatus() {
		return status;
	}

	public String getDescription() {
		return description;
	}

	public String getImage() {
		return image;
	}

	public int getUserID() {
		return userID;
	}

	public String getCategory() {
		return category;
	}

	public String getUserName() {
		return userName;
	}
	
	public int getHighestBid(){
		return highestBid;
	}

	// DE SETTERS

	public void setProductID(int _productID) {
		productID = _productID;
	}

	public void setName(String _name) {
		name = _name;
	}

	public void setMinimumPrize(int _minimumPrize) {
		minimumPrize = _minimumPrize;
	}

	public void setStartDate(Date _startDate) {
		startDate = _startDate;
	}

	public void setStartDateString(String _startDateString) {
		startDateString = _startDateString;
	}

	public void setEndDate(Date _endDate) {
		endDate = _endDate;
	}

	public void setEndDateString(String _endDateString) {
		endDateString = _endDateString;
	}

	public void setStatus(String _status) {
		status = _status;
	}

	public void setDescription(String _description) {
		description = _description;
	}

	public void setImage(String _image) {
		image = _image;
	}

	public void setUserID(int _userID) {
		userID = _userID;
	}

	public void setCategory(String _category) {
		category = _category;
	}

	public void setUserName(String _userName) {
		userName = _userName;
	}

	public void setHighestBid(int _highestBid) {
		highestBid = _highestBid;
	}
	// ANDERE FUNCTIES

}